package com.laicunba.service.accounting;

import java.math.BigDecimal;

public interface NegotiateBuyService {
	class DoBuyParam {
		private String certificateId;
		private String financingTargetId;
		private String buyUserId;
		private BigDecimal buyAmount;
		private String summary; // 备注
		private String payMark;
		private int tN = -1; // t+N, -1代表这里不关心
		
		public void settN(int tN) {
			this.tN = tN;
		}
		public int gettN() {
			return tN;
		}

		public void setPayMark(String payMark) {
			this.payMark = payMark;
		}

		public String getPayMark() {
			return payMark;
		}

		public String getCertificateId() {
			return certificateId;
		}

		public String getFinancingTargetId() {
			return financingTargetId;
		}

		public String getBuyUserId() {
			return buyUserId;
		}

		public BigDecimal getBuyAmount() {
			return buyAmount;
		}

		public String getSummary() {
			return summary;
		}

		public void setCertificateId(String certificateId) {
			this.certificateId = certificateId;
		}

		public void setFinancingTargetId(String financingTargetId) {
			this.financingTargetId = financingTargetId;
		}

		public void setBuyUserId(String buyUserId) {
			this.buyUserId = buyUserId;
		}

		public void setBuyAmount(BigDecimal buyAmount) {
			this.buyAmount = buyAmount;
		}

		public void setSummary(String summary) {
			this.summary = summary;
		}

	}

	String doBuy(DoBuyParam param);
}
